xencons must notify via evtchn. It can't use the irq as the
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 30 Sep 2005 16:34:01 +0000 (17:34 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 30 Sep 2005 16:34:01 +0000 (17:34 +0100)
notification handle because console is used early, before the
irq is set up.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/console/xencons_ring.c

index c74b045db2ec710252bf031e5d4a6073fbf60064..346c2fd656e4986ef565b784b31e684ff0298abe 100644 (file)
@@ -65,7 +65,8 @@ static int __xencons_ring_send(
 int xencons_ring_send(const char *data, unsigned len)
 {
        int sent = __xencons_ring_send(outring(), data, len);
-       notify_remote_via_irq(xencons_irq);
+       /* Use evtchn: this is called early, before irq is set up. */
+       notify_remote_via_evtchn(xen_start_info->console_evtchn);
        return sent;
 }